package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDesktopPane;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JScrollPane;
import javax.swing.JSpinner;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.ListModel;
import javax.swing.SpinnerListModel;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class AltaConjunto extends javax.swing.JFrame {
	private JDesktopPane jDesktopPane1;
	private JLabel jLabel2;
	private JTextField Codigo;
	private JLabel jLabel3;
	private JLabel jLabel4;
	private JLabel jLabel5;
	private JButton Cancelar;
	private JButton Crear;
	private JList jList1;
	private JScrollPane jScrollPane1;
	private JComboBox jComboBox1;
	private JButton Agregar;
	private JTextField Nombre;
	private JLabel jLabel1;
	private AltaConjunto app;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				AltaConjunto inst = new AltaConjunto();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public AltaConjunto() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				jDesktopPane1 = new JDesktopPane();
				getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
				jDesktopPane1.setPreferredSize(new java.awt.Dimension(548, 304));
				{
					jLabel1 = new JLabel();
					jDesktopPane1.add(jLabel1);
					jLabel1.setText("Alta Conjunto");
					jLabel1.setBounds(228, 12, 113, 16);
				}
				{
					jLabel2 = new JLabel();
					jDesktopPane1.add(jLabel2);
					jLabel2.setText("Codigo:");
					jLabel2.setBounds(12, 48, 63, 16);
				}
				{
					Codigo = new JTextField();
					jDesktopPane1.add(Codigo);
					Codigo.setBounds(102, 45, 120, 23);
				}
				{
					jLabel3 = new JLabel();
					jDesktopPane1.add(jLabel3);
					jLabel3.setText("Nombre:");
					jLabel3.setBounds(12, 91, 63, 16);
				}
				{
					Nombre = new JTextField();
					jDesktopPane1.add(Nombre);
					Nombre.setBounds(102, 88, 120, 23);
				}
				{
					jLabel4 = new JLabel();
					jDesktopPane1.add(jLabel4);
					jLabel4.setText("Agregar Prendas:");
					jLabel4.setBounds(256, 48, 106, 16);
				}
				{
					Agregar = new JButton();
					jDesktopPane1.add(Agregar);
					Agregar.setText("Agregar");
					Agregar.setBounds(418, 88, 92, 23);
				}
				{
					ComboBoxModel jComboBox1Model = 
							new DefaultComboBoxModel(
									new String[] { "Item One", "Item Two" });
					jComboBox1 = new JComboBox();
					jDesktopPane1.add(jComboBox1);
					jComboBox1.setModel(jComboBox1Model);
					jComboBox1.setBounds(368, 45, 142, 23);
				}
				{
					jLabel5 = new JLabel();
					jDesktopPane1.add(jLabel5);
					jLabel5.setText("Prendas:");
					jLabel5.setBounds(12, 141, 63, 16);
				}
				{
					jScrollPane1 = new JScrollPane();
					jDesktopPane1.add(jScrollPane1);
					jScrollPane1.setBounds(103, 141, 147, 91);
					jScrollPane1.getVerticalScrollBar().setPreferredSize(new java.awt.Dimension(15, 64));
					{
						ListModel jList1Model = 
								new DefaultComboBoxModel(
										new String[] { "Item One", "Item Two" });
						jList1 = new JList();
						jScrollPane1.setViewportView(jList1);
						jList1.setModel(jList1Model);
						jList1.setBounds(239, 78, 144, 88);
					}
				}
				{
					Crear = new JButton();
					jDesktopPane1.add(Crear);
					Crear.setText("Crear");
					Crear.setBounds(301, 209, 93, 23);
				}
				{
					Cancelar = new JButton();
					jDesktopPane1.add(Cancelar);
					Cancelar.setText("Cancelar");
					Cancelar.setBounds(430, 209, 88, 23);
				}

			}
			app=this;
			Cancelar.addActionListener(new ActionListener() {
				
				@Override
				public void actionPerformed(ActionEvent e) {
					// TODO Auto-generated method stub
					app.dispose();
				}
				
			});
			pack();
			this.setSize(565, 332);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
